package com.nuc.impl;

import jdk.nashorn.internal.runtime.regexp.joni.constants.TargetInfo;

/**
 * Time    : 2023/3/29 19:15
 * Author  : 王摇摆
 * FileName: Main.java
 * Software: IntelliJ IDEA 2020.2.2
 * Blog    ：https://blog.csdn.net/weixin_44943389?type=blog
 */

public class Main {
    public static void main(String[] args) {
        Place place = new Place("东北");
        Driver driver = new Driver("老张");

        driver.drive(new Car(), place);
        System.out.println("------------------");

        driver.drive(new Plane(), place);
        System.out.println("------------------");

        driver.drive(new Train(), place);
        System.out.println("------------------");

    }
}

